package com.youhome.service.mapper;

import com.youhome.service.model.BUser;
import com.youhome.service.model.Contacts;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(BUser record);

    int insertSelective(BUser record);

    BUser selectByPrimaryKey(Long userId);

    BUser selectByUsername(String username);

    BUser selectByCounselorId(Long counselorId);

    BUser selectByCompanyId(Long companyId);

    BUser selectByPhone(String phone);

    int updateByPrimaryKeySelective(BUser record);

    int updateByPrimaryKey(BUser record);

    List<Contacts> selectContactsByCompanyId(Long companyId);


    int updateReportCount(BUser user);

    int selectRepotCountById(Long id);


    BUser selectByOpenId(String openid);
}